<%@page import="java.util.List"%>
<%@page import="com.muk.meis.model.service.UserService"%>
<%@page import="com.muk.meis.model.bean.UserProfile"%>

<%@ page language="java" contentType="text/html; charset=TIS-620"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>MEIS</title>
<link href="layout.css" rel="stylesheet" type="text/css">
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../js/flot/excanvas.min.js"></script><![endif]-->
<link href="../css/dropdown/themes/default/helper.css" media="screen" rel="stylesheet" type="text/css" />
<!-- Beginning of compulsory code below -->

<link href="../css/dropdown/dropdown.css" media="screen" rel="stylesheet" type="text/css" />
<link href="../css/dropdown/themes/default/default.css" media="screen" rel="stylesheet" type="text/css" />

<!--[if lt IE 7]>
<script type="text/javascript" src="js/jquery/jquery.js"></script>
<script type="text/javascript" src="js/jquery/jquery.dropdown.js"></script>
<![endif]-->

<!-- / END -->
<script language="javascript" type="text/javascript"
	src="../js/flot/jquery-1.6.2.js"></script>
<script language="javascript" type="text/javascript"
	src="../js/flot/jquery.flot.js"></script>
<style type="text/css">
.mesi_header_m {
	color: #F00;
}
</style>
</head>
<body>
    <jsp:include page="../menu_admin.jsp"></jsp:include>
    <div style="position:relative;padding-top:60px;padding-left:300px;">
		<table>
			<tr>
				<td>id</td>
				<td>name</td>
				<td>role</td>
				<td>create date</td>
			</tr>
			<%
				UserService userService = new UserService();
				List<UserProfile> lst = userService.getUserList();
				for (UserProfile userProfile : lst) {
			%>
			<a href=<%="edit.jsp?userid="+userProfile.getUserId()%>>
			<tr>
				<td><%=userProfile.getUserId()%></td>
				<td><%=userProfile.getUserName()%></td>
				<td><%=userProfile.getRole()%></td>
				<td><%=userProfile.getCreateDate()%></td>
			</tr>
			</a>
			<%
				}
			%>
		</div>
	</table>
</body>
</html>